package com.bestillet.kyllingogco;

import java.util.ArrayList;

import android.graphics.Bitmap;

public class Item {
	private ArrayList<MixHeader> headers;
	private ArrayList<MixGroup> groups;
	private ArrayList<Mix> mix;
	
	private Bitmap image;
	
	private String name, choices, picturenormal, picturelarge;
	
	private int idx, categoryId, menuIdx, price, amount;
	
	public Item(String name, String picturenormal, String picturelarge, int idx, int categoryId, int menuIdx, int price, int amount) {
		this.name = name;
		this.picturenormal = picturenormal;
		this.picturelarge = picturelarge;
		this.idx = idx;
		this.categoryId = categoryId;
		this.menuIdx = menuIdx;
		this.price = price;
		this.amount = amount;
		headers = new ArrayList<MixHeader>();
		groups = new ArrayList<MixGroup>();
		mix = new ArrayList<Mix>();
	}
	
	public Item(Menu menu, int amount) {
		this.name = menu.getName();
		this.picturenormal = menu.getPicturenormal();
		this.picturelarge = menu.getPicturelarge();
		this.idx = menu.getIdx();
		this.categoryId = menu.getCategoryId();
		this.menuIdx = menu.getIdx();
		this.price = menu.getPrice();
		this.amount = amount;
		headers = new ArrayList<MixHeader>();
		groups = new ArrayList<MixGroup>();
		mix = new ArrayList<Mix>();
	}
	
	public Item() {
		headers = new ArrayList<MixHeader>();
		groups = new ArrayList<MixGroup>();
		mix = new ArrayList<Mix>();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getChoices() {
		return choices;
	}

	public void setChoices(String choices) {
		this.choices = choices;
	}

	public String getPicturenormal() {
		return picturenormal;
	}

	public void setPicturenormal(String picturenormal) {
		this.picturenormal = picturenormal;
	}

	public String getPicturelarge() {
		return picturelarge;
	}

	public void setPicturelarge(String picturelarge) {
		this.picturelarge = picturelarge;
	}

	public int getIdx() {
		return idx;
	}

	public void setIdx(int idx) {
		this.idx = idx;
	}

	public int getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}

	public int getMenuIdx() {
		return menuIdx;
	}

	public void setMenuIdx(int menuIdx) {
		this.menuIdx = menuIdx;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}
	
	public Bitmap getImage() {
		return image;
	}

	public void setImage(Bitmap image) {
		this.image = image;
	}

	public ArrayList<MixHeader> getHeaders() {
		return headers;
	}
	
	public void addHeader(MixHeader h) {
		headers.add(h);
	}
	
	public void removeHeader(MixHeader h) {
		headers.remove(h);
	}

	public ArrayList<MixGroup> getGroups() {
		return groups;
	}
	
	public void addGroup(MixGroup g) {
		groups.add(g);
	}
	
	public void removeGroup(MixGroup g) {
		groups.remove(g);
	}

	public ArrayList<Mix> getMix() {
		return mix;
	}
	
	public void addMix(Mix m) {
		mix.add(m);
	}
	
	public void removeMix(Mix m) {
		mix.remove(m);
	}
}